home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-0195.lzh / AMOSLIST / text0070.txt < prev    next >
Encoding:
Text File  |  1995-02-01  |  883 b   |  21 lines

  1. >     I thought that if you used a negative number in the Rnd() function,
  2. > it would return the same number as it did for the last Rnd() call.  Therefore,
  3. > you would not get the same set of random numbers 10 times, you would get 10
  4. > sets of numbers, each set containing 10 of the same random number, each set
  5. > possibly being composed of a different repeated number.
  6.  
  7. That may be what the manual says (I can`t remember, and it`s 2 miles
  8. away from here), but believe me, using a -ve number DOES work, check
  9. out my "Midwinter" map generator (available on Aminet and AMOS Website) for 
  10. proof. It was this program that prompted me to ask Europress what the
  11. %$*&& was going on with Rnd/Randomise, and that`s how I got the
  12. fix/workaround/call it what you like.
  13.  
  14. Chris
  15. c.j.coulson@ncl.ac.uk
  16.  
  17. Windows 95, so nice of Microsoft to advertise the memory requirement
  18. so openly............... 
  19.  
  20.